<extend name="Public/base" />
<block name="title1">主页</block>
<block name="css"></block>
<block name="main1"><div style="width:1000px;height:340px">
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title></title>
	<script src="__PUBLIC__/layer/layer.js"></script>
</head>
<body>
	
           
                <div id="tabs" style="width:1366px;height:500px;">
                    <ul>
                        <li><a href="#tabs-a">账号管理</a></li>
                        <li><a href="#tabs-b">魅币</a></li>
                    </ul>
                    <div id="tabs-a">
					  <div class='top-leftWrap'>
					<img id='userImg' src='<{$data.photo}>' style="width:80px;height:80px;" >
					<{$data.uname}>
				    </div>
					
                        <li><a id="modifyIconTip" class="modifyIconTip" href="<{:U('upload')}>">编辑头像</a></li>
	       				<li><a href="updatep">修改密码</a></li> <div class='item-right' style='display:none;'>
				
						</div>
					</div>
                    <div id="tabs-b">
					
					<input type="button"  value="签到领魅币" id="money">
					
					
					<span>我的魅币</span><span id="m"><{$data.money}></span>
					
					
					</div>
                </div>
	
	
<script>
$('#tabs').tabs();
$('#money').click(function(){
     money=$('#m').text();
   $.post("<{:U('money')}>",{money:money},function(data){
      if(data.status){
    $('#money').val('已签到');
	    $('#m').text(data.money);
	         $('#money').attr("disabled","disabled");
	  }else{
	   $('#money').text('签到失败');
	  }
   })
});
</script>
</body>
</html>
</block>